#include <iostream>
#include <cmath>
using namespace std;

class Point
{
private:
	int x;
	int y;
public:
	Point(int x,int y)
		:x(x),y(y)
	{
	}
	int get_x(int x) const
	{
		return x;
	}
	int get_y(int y) const
	{
		return y;
	}

	//void display() const
	//{
	//	cout
//	}
	double operator << (const Point& _p);

};

double Point::operator << (const Point& _p)
{
	double a = pow((this->x - _p.x), 2)+pow((this->y - _p.y), 2);
	double res = sqrt(a);
	return res;
}


int main(void)
{
	Point p1(1,2);
	Point p2(4,6);
	double len = p1 << p2;	//double operator << (const Point& lhs, const Point& rhs);
	cout << "len:" << len << endl;

	return 0;
}







